using Webshop20.Domain.Orders.Core;
using Webshop20.Domain.Orders.Factories.Contracts;
using Webshop20.Domain.Orders.Processes;
using Webshop20.Domain.Orders.Processes.States;

namespace Webshop20.Domain.Orders.Factories.Implementation
{
    public class OrderProcessFactory : IOrderProcessFactory 
    {
        public IOrderProcess Create(Order newOrder)
        {
            return new OrderProcess(newOrder, new InitializedState());
        }
    }
}